package com.sample.mapping;

import java.util.LinkedHashMap;

import javax.persistence.Column;

public class TimeLine<T> extends AbstractMapping<T> {	
	@Column(name = "generateTimeId")
	private LinkedHashMap<T, T> timeLineData;
	
	public TimeLine(){
		setTimeLineData(new LinkedHashMap<T, T>(50));
	}

	public LinkedHashMap<T, T> getTimeLineData() {
		return timeLineData;
	}

	public void setTimeLineData(LinkedHashMap<T, T> timeLineData) {
		this.timeLineData = timeLineData;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((timeLineData == null) ? 0 : timeLineData.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TimeLine other = (TimeLine) obj;
		if (timeLineData == null) {
			if (other.timeLineData != null)
				return false;
		} else if (!(timeLineData.size() == other.timeLineData.size()))
			return false;
		return true;
	}	

	
}
